<?php
include './inc/PAGE.php';
$p = new PAGE("");

$loginOk = $p->s()->getvar("loginOk");
$username = $p->s()->getvar("username");
$type = $p->s()->getvar("type");

if($loginOk==1  && strlen($username)>0) {
    $p = new PAGE("Κεντρική");
}else {
    header("Location: ./index.php");
}
?>
<br/>
<br/>
<table align="center" class="tableempty">
    <tr class="top">
        <td class="top" align="center"><a href="./ze_book_search.php">
                <img border="0" src="images/book.png" alt="book"/><br/>
                Αναζήτηση<br/>βιβλίων</a>
        </td>
        <?php
        if($type==USER ||$type==LIB){
        ?>
        <td align="center" valign="top" class="top"><a href="./ze_user_info.php"><img border="0" src="images/settings.png" alt="settings"/><br/>Πληροφορίες</a>
        </td>
        <?php
        }
        ?>
            <?php
        if($type==ADMIN ||$type==LIB){
            echo "<td valign=\"top\" align=\"center\">
                <a href=\"./ze_user_librarian_view.php\"><img border=\"0\" src=\"images/user.png\" alt=\"settings\"/><br/>Χρήστες</a>
                </td>";
        }
        ?>
    </tr>
</table>
<br/>
<br/>
<?
$p->close();
?>